<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
	<title>添加挂机-<?php echo C('web_name');?></title>
    <meta name="keywords" content="<?php echo C('web_index_keywords');?>" />
    <meta name="description" content="<?php echo C('web_index_description');?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link rel="stylesheet" href="/Style/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="/Style/bootstrap/css/bootstrap-theme.min.css">
	<script src="/Style/bootstrap/js/jquery.min.js"></script>
	<script src="/Style/bootstrap/js/bootstrap.min.js"></script>
	<?php if($alert): echo ($alert); endif; ?>
	<link rel="stylesheet" href="/Style/css/default.css?3">
	<script src="/Style/js/default.js"></script>
	
</head>
<body>

<div class="mznav">
	<nav class="navbar">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#primary-navbar" style="margin-top: 20px;"><span class="sr-only"><?php echo C('web_name');?></span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
			<p class="navbar-brand">
				<a href="/" class="navbar-logo"><?php echo C('web_name');?></a>
			</p>
		</div>
		<div class="collapse navbar-collapse" id="primary-navbar">
			<ul class="nav navbar-nav navbar-right navbar-lean">
				<li><a href="<?php echo U('user');?>" <?php if(ACTION_NAME == 'user'): ?>class="nav-active"<?php endif; ?>><span class="glyphicon glyphicon-user" aria-hidden="true">&nbsp;</span>用户中心</a></li>
				<li><a href="<?php echo U('add');?>" <?php if(ACTION_NAME == 'add'): ?>class="nav-active"<?php endif; ?>><span class="glyphicon glyphicon-plus" aria-hidden="true">&nbsp;</span>添加挂机</a></li>
				<li><a href="<?php echo U('shop');?>" <?php if(ACTION_NAME == 'shop'): ?>class="nav-active"<?php endif; ?>><span class="glyphicon glyphicon-shopping-cart" aria-hidden="true">&nbsp;</span>自助开通</a></li>
				<?php if($user['daili']): ?><li><a href="<?php echo U('daili/index');?>"><span class="glyphicon glyphicon-th" aria-hidden="true">&nbsp;</span>代理后台</a></li><?php endif; ?>
				<li><a href="<?php echo U('logout');?>"><span class="glyphicon glyphicon-log-out" aria-hidden="true">&nbsp;</span>退出</a></li>
			</ul>
		</div>
	</div>
	</nav>
</div>
<div class="page-container">
	<div class="left-menu hidden-xs">
		<div class="left_container">
			<div class="list-group">
				<div class="list-group-item list-group-item-info">我的信息<a href="#"><span class="glyphicon glyphicon-edit" aria-hidden="true" style="float:right;"></span></a></div>
				<div class="list-group-item">
					<span class="badge">UID:<?php echo ($user["uid"]); ?></span>
					<span class="glyphicon glyphicon-user" aria-hidden="true">&nbsp;<?php echo ($user["user"]); ?></span>
				</div>
				<div class="list-group-item list-group-item-warning">
					<span class="glyphicon glyphicon-th" aria-hidden="true">&nbsp;代理：<?php if($user['daili']): ?><a href="<?php echo U('daili/index');?>">普通代理</a><?php else: ?>不是代理<?php endif; ?></span>
				</div>
				<div class="list-group-item">
					<span class="badge">充值</span>
					<span class="glyphicon glyphicon-yen" aria-hidden="true">&nbsp;<font color="red" size="3"><?php echo ($user["rmb"]); ?></font>&nbsp;元</span>
				</div>
				<div class="list-group-item">
					<a href="" class="badge">兑换</a>
					<span class="glyphicon glyphicon-th" aria-hidden="true">&nbsp;积分：<font color="green" size="3"><?php echo ($user["jf"]); ?></font></span>
				</div>
				<div class="list-group-item">
					<a href="<?php echo U('shop');?>" class="badge">购买</a>
					<span class="glyphicon glyphicon-hourglass" aria-hidden="true">&nbsp;<?php echo get_isvip($user['vip'],$user['vipend'],'No VIP');?></span>
				</div>
				<div class="list-group-item">
					<a href="<?php echo U('shop');?>" class="badge">增加</a>
					<span class="glyphicon glyphicon-th" aria-hidden="true">&nbsp;配额：<?php echo get_count('qqs',"uid='$user[uid]'",'qid');?>/<font color="green" size="3"><?php echo ($user["peie"]); ?></font></span>
				</div>
			</div>
			<div class="list-group">
				<div class="list-group-item list-group-item-info">挂机列表<a href="#"><span class="glyphicon glyphicon-plus" aria-hidden="true" style="float:right;"></span></a></div>
				<?php if($qqlist=M('qqs')->field(array('*'))->where("uid='".$user['uid']."'")->select()){ $data="";foreach($qqlist as $row){ if($row['sidzt'] || $row['skeyzt']){ $class="glyphicon-remove-circle red";}else{ $class="glyphicon-ok-circle green";}$data.='<a href="'.U('qq','qid='.$row['qid']).'" class="list-group-item"><span class="glyphicon '.$class.'" aria-hidden="true">&nbsp;'.$row['qq'].'</span></a>';}echo $data;}else{ echo'<div class="list-group-item"><a href="'.U('add').'" class="badge">添加</a><span class="glyphicon glyphicon-remove" aria-hidden="true">&nbsp;你还没有添加</span></div>';}?>
			</div>
			<?php if(ACTION_NAME == 'qq' or ACTION_NAME == 'qqset'): ?><div class="list-group">
				<div class="list-group-item list-group-item-info"><?php echo ($qqrow["qq"]); ?>功能配置</div>
				<div class="list-group-item">
					<a href="<?php echo U('qqset','qid='.$_GET['qid'].'&xz=zan');?>" class="badge"><?php echo get_xz($qqrow['iszan']);?></a>
					<span class="glyphicon <?php if($qqrow['iszan'] > 0): ?>glyphicon-ok-circle green<?php else: ?>glyphicon-remove-circle red<?php endif; ?>" aria-hidden="true">&nbsp;说说秒赞</span>
				</div>
				<div class="list-group-item">
					<a href="<?php echo U('qqset','qid='.$_GET['qid'].'&xz=reply');?>" class="badge"><?php echo get_xz($qqrow['isreply']);?></a>
					<span class="glyphicon <?php if($qqrow['isreply'] > 0): ?>glyphicon-ok-circle green<?php else: ?>glyphicon-remove-circle red<?php endif; ?>" aria-hidden="true">&nbsp;说说秒评</span>
				</div>
				<div class="list-group-item">
					<a href="<?php echo U('qqset','qid='.$_GET['qid'].'&xz=zf');?>" class="badge"><?php echo get_xz($qqrow['iszf']);?></a>
					<span class="glyphicon <?php if($qqrow['iszf'] > 0): ?>glyphicon-ok-circle green<?php else: ?>glyphicon-remove-circle red<?php endif; ?>" aria-hidden="true">&nbsp;说说转发</span>
				</div>
				<div class="list-group-item">
					<a href="<?php echo U('qqset','qid='.$_GET['qid'].'&xz=shuo');?>" class="badge"><?php echo get_xz($qqrow['isshuo']);?></a>
					<span class="glyphicon <?php if($qqrow['isshuo'] > 0): ?>glyphicon-ok-circle green<?php else: ?>glyphicon-remove-circle red<?php endif; ?>" aria-hidden="true">&nbsp;自动说说</span>
				</div>
				<div class="list-group-item">
					<a href="<?php echo U('qqset','qid='.$_GET['qid'].'&xz=qd');?>" class="badge"><?php echo get_xz($qqrow['isqd']);?></a>
					<span class="glyphicon <?php if($qqrow['isqd'] > 0): ?>glyphicon-ok-circle green<?php else: ?>glyphicon-remove-circle red<?php endif; ?>" aria-hidden="true">&nbsp;空间签到</span>
				</div>
				
			</div><?php endif; ?>
		</div>
	</div>
	<div class="main-content">
		
<div class="row">
	<div class="col-xs-12">
		<ol class="breadcrumb">
			<li><a href="/"><span class="hidden-xs"><?php echo C('web_name');?></span><span class="hidden-md hidden-lg">首页</span></a></li>
			<li><a href="<?php echo U('user');?>">用户中心</a></li>
			<li class="active">添加挂机</li>
		</ol>
	</div>
</div>

<div class="row">
	<div class="col-xs-12 col-md-4">
		<div class="list-group">
			<div class="list-group-item list-group-item-success">添加说明</div>
			<?php echo stripslashes(C('gonggao_add'));?>
		</div>
	</div>
	<div class="col-xs-12 col-md-4">
		<div class="list-group">
			<div class="list-group-item list-group-item-success">添加QQ账号</div>
			<form action="<?php echo U('add');?>" role="form" class="form-horizontal" method="post"><input type="hidden" name="do" value="add">
			<?php if($msg): ?><div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">结&nbsp;&nbsp;果&nbsp;&nbsp;</div>
					<span class="form-control red"><?php echo ($msg); ?></span>
				</div>
			</div><?php endif; ?>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">&nbsp;&nbsp;Q&nbsp;&nbsp;Q&nbsp;&nbsp;</div>
					<input type="text" class="form-control" name="uin" placeholder="Q Q号码" value="<?php echo ($uin); ?>">
				</div>
			</div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">密&nbsp;&nbsp;码&nbsp;&nbsp;</div>
					<input type="text" class="form-control" name="pwd" placeholder="Q Q密码" value="<?php echo ($pwd); ?>">
				</div>
			</div>
			<div class="list-group-item <?php if(!$code): ?>hide<?php endif; ?>">
				<div class="input-group">
					<div class="input-group-addon">验证码</div>
					<input type="text" class="form-control" name="code" placeholder="请输入验证码" value=""><br>
					<input type="hidden" name="sig" value="<?php echo ($sig); ?>">
					<img class="form-control" style="height:80px;" src="/Other/getpic.php?uin=<?php echo ($uin); ?>&sig=<?php echo ($sig); ?>">
				</div>
				
			</div>
				
			
			<div class="list-group-item">
				<input type="submit" name="submit" value="确认添加&nbsp;/&nbsp;更新" class="btn btn-primary btn-block">
			</div>
			</form>
		</div>
	</div>
</div>

	</div>
</div>

</body>
</html>